package com.tools.generator.service;

import com.tools.generator.entity.FieldTypeEntity;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface FieldTypeService {

    List<FieldTypeEntity> page(FieldTypeEntity query);

    Map<String, FieldTypeEntity> getMap();

    /**
     * 根据tableId，获取包列表
     *
     * @param tableId 表ID
     * @return 返回包列表
     */
    Set<String> getPackageByTableId(Long tableId);

    Set<String> getList();

    int save(FieldTypeEntity entity);

    FieldTypeEntity getById(Long id);

    void updateById(FieldTypeEntity entity);

    void removeBatchByIds(List<Long> list);
}
